# -*- coding: utf-8 -*-
"""
@Time: 2025/3/24 11:12
@Author: jins
@File: const.py
@Introduction: 
"""
import datetime
import random
from libs.read_config import read_ini_value

SEND_ACCT_URL = read_ini_value('url', 'send_acct_url')
SEND_INFO_URL = read_ini_value('url', 'send_info_url')
SEND_MANAGER_URL = read_ini_value('url', 'send_manager_url')
WAIT_REVERSAL_TIME = int(read_ini_value('wait_time', 'wait_reversal_time'))
WAIT_TIMEOUT_TIME = int(read_ini_value('wait_time', 'wait_timeout_time'))
TODAY = datetime.datetime.now().strftime('%Y%m%d')


class RESP_CODE:
    SUCCESS = "00000"
    TIME_OUT = "99998"
    FAIL = "99999"
    DUPLICATE_TRANS = "51558"
    WRONG_PASSWD = "51513"
    CUPS_TIME_OUT = "51778"
    PRE_CHECK_ERROR = "990012"
    SINGLE_AMOUNT_EXCEEDSLIMIT = 'B50251'
    SEND_CUPS_FAIL = '51504'
    NOT_SUPPORT = '51547'
    GET_LOCK_FAIL = '51511'
    ORI_NOT_EXSIST = '51522'
    CANCEL_SKIP_DAY = '51521'
    ORI_NOT_SUCCESS = '51647'
    CUPS_CHEAT = '51532'
    BUG_SUCCESS = '51525'
    BUG_SUCCESS_2 = '51524'
    ORI_FIND_FAIL = '99483'
    ORI_PROTOCOL_NOT_EXSIST = '51716'


class ACCT:
    SUCCESS = '6212141000000000013'
    TIME_OUT = '6225692000000021'
    FAIL = '6228952000000021'
    CUPS_SUCCESS = '6212142100000000036'


class CORE_STATUS:
    INITIAL = '04'  # 初始
    SUCCESS = '00'  # 成功
    FAILED = '01'  # 失败
    TIMEOUT = '02'  # 超时
    HANDLING = '03'  # 处理中
    ONACCOUNT = '05'  # 挂账
    CORRECT = '20'  # 冲正


class END_POINT:
    EP02006091 = '/flow_cups_02006091_send'  # 指定账户圈存
    EP02006391 = '/flow_cups_02006391_send'  # IC卡现金充值
    EP04206091 = '/flow_cups_04206091_send'  # 指定账户圈存冲正
    EP04206391 = '/flow_cups_04206391_send'  # IC卡现金充值冲正
    EP02000000 = '/flow_cups_02000000_send'  # 消费
    EP04200000 = '/flow_cups_04200000_send'  # 消费冲正
    EP02002000 = '/flow_cups_02002000_send'  # 消费撤销
    EP04202000 = '/flow_cups_04202000_send'  # 消费撤销冲正
    EP02202000 = '/flow_cups_02202000_send'  # 退货
    EP02000100 = '/flow_cups_02000100_send'  # 取现
    EP04200100 = '/flow_cups_04200100_send'  # 取现冲正
    EP02002100 = '/flow_cups_02002100_send'  # 存款
    EP02202100 = '/flow_cups_02202100_send'  # 存款确认
    EP02001700 = '/flow_cups_02001700_send'  # 存款撤销
    EP04201700 = '/flow_cups_04201700_send'  # 存款撤销冲正
    EP02003002 = '/flow_cups_02003002_send'  # 余额查询
    EP06203002 = '/flow_cups_06203002_send'  # 脚本结果通知
    EP01000306 = '/flow_cups_01000306_send'  # 预授权
    EP01002000 = '/flow_cups_01002000_send'  # 预授权撤销
    EP04200300 = '/flow_cups_04200300_send'  # 预授权冲正
    EP04202001 = '/flow_cups_04202001_send'  # 预授权撤销冲正
    EP02000006 = '/flow_cups_02000006_send'  # 预授权完成
    EP02002006 = '/flow_cups_02002006_send'  # 预授权完成撤销
    EP04200006 = '/flow_cups_04200006_send'  # 预授权完成冲正
    EP02004000 = '/flow_cups_02004000_send'  # 转账
    EP02004812 = '/flow_cups_02004812_send'  # 转账撤销
    EP01003300 = '/flow_cups_01003300_send'  # 账户验证
    EP01009200 = '/flow_cups_01009200_send'  # 发卡方解除委托关系
    EP08200000 = '/flow_cups_08200000_send'  # 线路测试


class ColorSet:
    CLOSE = 0
    OK = 1
    FAIL = 2
    WARN = 3
    TIPS = 4


class CUPS_CARD:
    IC05 = '6224242000000021'
    IC02 = '6224242000000021'
    ID03 = '6212142100000000036'
    IC04 = '6212141000000000013'


# 各交易基准json结构体，默认成功
def init_req_json(code):
    REQ_JSON_02006091 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "195400",
                    "reqSysCode": "reqSysCode",
                    "productCode": "productCode",
                    "reqSerial": f"{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller",
                    "transCode": "02006091",
                    "busiNo": "busiNo",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": f"{str(random.randint(100000000, 999999999))}"
                },
                "body": {
                    "payChannel": "CDCS",
                    "msgType": "0200",
                    "thirdTransCode": "609100",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "mainAcct": "6228952000000022",
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000, 9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "010101",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "pinInputMode": "06",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "term2termId": "000000001370",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "reservedData": "00000600010000000000402",
                    "serviceCondCode": "91",
                    "cardSeq": "000",
                    "iccData": "5F2A02015682027D00950500001800009A032502259C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26083A181421049988C49F2701809F3303E098C09F34036003029F3501229F360216209F37040B7FBD48",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "mac": "B9069F2C",
                    "oriMsgKey": ""
                }
            }
        }
    }
    REQ_JSON_04206091 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "195400",
                    "reqSysCode": "reqSysCode",
                    "productCode": "productCode1",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller1",
                    "transCode": "04206091",
                    "busiNo": "busiNo1",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": "{{$timestamp}}"
                },
                "body": {
                    "payChannel": "DBCS",
                    "msgType": "0420",
                    "mainAcct": ACCT.SUCCESS,
                    "thirdTransCode": "609100",
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "093739",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "cardSeq": "000",
                    "serviceCondCode": "91",
                    "pinInputMode": "06",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "term2termId": "000000001207",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "iccData": "5F2A02015682027D00950500001800009A032502199C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26085E27C935CF2821D79F2701809F3303E098C09F34036003029F3501229F360214549F37040B7FBD48",
                    "reservedData": "00000600010000000000402",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "oriBusiReqNo": "332211",
                    "oriMsgKey": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}"
                }
            }
        }
    }
    REQ_JSON_02006391 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "181818",
                    "reqSysCode": "reqSysCode123",
                    "productCode": "productCode123",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "CUPS",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller123",
                    "transCode": "02006091",
                    "busiNo": "busiNo123",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": "{{$timestamp}}"
                },
                "body": {
                    "payChannel": "CDCS",
                    "msgType": "0200",
                    "thirdTransCode": "639100",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "mainAcct": ACCT.SUCCESS,
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "181818",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "pinInputMode": "06",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "term2termId": "000000001370",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "reservedData": "00000600010000000000402",
                    "serviceCondCode": "91",
                    "cardSeq": "000",
                    "iccData": "5F2A02015682027D00950500001800009A032502259C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26083A181421049988C49F2701809F3303E098C09F34036003029F3501229F360216209F37040B7FBD48",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "mac": "B9069F2C",
                    "oriMsgKey": ""
                }
            }
        }
    }
    REQ_JSON_04206391 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "181818",
                    "reqSysCode": "reqSysCode123",
                    "productCode": "productCode123",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "CUPS",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller123",
                    "transCode": "02006091",
                    "busiNo": "busiNo123",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": "{{$timestamp}}"
                },
                "body": {
                    "payChannel": "CDCS",
                    "msgType": "0420",
                    "thirdTransCode": "639100",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "mainAcct": ACCT.SUCCESS,
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "181818",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "pinInputMode": "06",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "term2termId": "000000001370",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "reservedData": "00000600010000000000402",
                    "serviceCondCode": "91",
                    "cardSeq": "000",
                    "iccData": "5F2A02015682027D00950500001800009A032502259C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26083A181421049988C49F2701809F3303E098C09F34036003029F3501229F360216209F37040B7FBD48",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "mac": "B9069F2C",
                    "oriMsgKey": ""
                }
            }
        }
    }
    REQ_JSON_02000000 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "181818",
                    "reqSysCode": "reqSysCode123",
                    "productCode": "productCode123",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "CUPS",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller123",
                    "transCode": "02000000",
                    "busiNo": "busiNo123",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": "{{$timestamp}}"
                },
                "body": {
                    "payChannel": "CDCS",
                    "msgType": "0200",
                    "thirdTransCode": "000000",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "mainAcct": ACCT.SUCCESS,
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "181818",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "pinInputMode": "06",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "term2termId": "000000001370",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "reservedData": "00000600030000000000401",
                    "serviceCondCode": "00",
                    "cardSeq": "000",
                    "iccData": "5F2A02015682027D00950500001800009A032502259C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26083A181421049988C49F2701809F3303E098C09F34036003029F3501229F360216209F37040B7FBD48",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "mac": "B9069F2C",
                    "oriMsgKey": "",
                    "track2": "6212141000000000013=49121017899031001"
                }
            }
        }
    }
    REQ_JSON_02000000_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "inputMode": "051",
                    "track2": "6212141000000000013=49121017899031001",
                    "info117": "4D4C3034320128D6D0B9FAD2F8C1AA4348494E4120554E494F4E5041592053494D554C41544F522020202020202020",
                    "attachDataPvt": "",
                    "payChannel": "CUPS",
                    "transAmtChar": "000000095000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "000000",
                    "password": "0000000000000000",
                    "msgType": "0200",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "5049303732010A2B3132312E3438333532020A2D30332E353631333435030550333130300402303305075330303030303106063030303032310708100120010000000008083030303031202020",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "2400000000000000",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600030000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "000",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR    ",
                    "regTime": "215628",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "pinInputMode": "06",
                    "iccData": "9F2608D2904543146D1C219F2701809F100807000103A02000019F37040B7FBD489F36020103950500001800009A032207119C01019F02060000000100005F2A02015682027D009F1A0201569F03060000000000009F33031234569F34036003029F3501129F1E083230303331323330840512345678909F41021234DF3103123456",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "02000000",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_04200000 = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "195400",
                    "reqSysCode": "reqSysCode",
                    "productCode": "productCode1",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "reqTransdate": TODAY,
                    "channel": "ATMP",
                    "teller": "teller1",
                    "transCode": "04200000",
                    "busiNo": "busiNo1",
                    "branch": "9001",
                    "areaCode": None
                },
                "custom": {
                    "globalSerial": "{{$timestamp}}"
                },
                "body": {
                    "payChannel": "CDCS",
                    "msgType": "0420",
                    "mainAcct": ACCT.SUCCESS,
                    "thirdTransCode": "000000",
                    "transAmtChar": "000000010000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": str(random.randint(100000, 999999)),
                    "regTime": "093739",
                    "regDate": TODAY[-4:],
                    "merchType": "5412",
                    "inputMode": "051",
                    "cardSeq": "000",
                    "serviceCondCode": "91",
                    "pinInputMode": "06",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "term2termId": "000000001207",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "iccData": "5F2A02015682027D00950500001800009A032502199C01019F02060000000100009F03060000000000009F100807000103A02000019F1A0201569F1E0832303033313233309F26085E27C935CF2821D79F2701809F3303E098C09F34036003029F3501229F360214549F37040B7FBD48",
                    "reservedData": "00000600010000000000402",
                    "netData": "534D30313620352575674A25067F1D4D6D7808480D",
                    "oriMsgKey": "020000145317416743410001437302000014373020",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}"
                }
            }
        }
    }
    REQ_JSON_04200100_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "attachDataPvt": "",
                    "payChannel": "DBCS",
                    "accountingType": "A231C",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "0000000000000000",
                    "msgType": "0420",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "2400000000000000",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "pinInputMode": "06",
                    "iccData": "",
                    "oriMsgKey": "020000213633099344100000450452000004504520",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": "636843372878234316",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02000100_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "attachDataPvt": "",
                    "settleDate": TODAY[-4:],
                    "payChannel": "DBCS",
                    "accountingType": "A231C",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "04504520",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "0000000000000000",
                    "msgType": "0200",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "2400000000000000",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "pkgMsgKey": f"123{str(random.randint(100000000, 999999999))}",
                    "sendBranch": "04504520",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "6051",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "pinInputMode": "06",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02000100_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "msgType": "0200",
                    "payChannel": "CUPS",
                    "mainAcct": ACCT.SUCCESS,
                    "thirdTransCode": "010000",
                    "transAmtChar": "000000200000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "systemTrackNo": "001536",
                    "regTime": "155744",
                    "regDate": "0221",
                    "merchType": "6011",
                    "inputMode": "051",
                    "cardSeq": "000",
                    "serviceCondCode": "02",
                    "pinInputMode": "06",
                    "reqBranch": "14373020",
                    "sendBranch": "14373020",
                    "track2": "6212142100000000036D29112203689031008",
                    "term2termId": "000000001282",
                    "terminalCode": "12345678",
                    "merchNo": "123456789012345",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "currency": "156",
                    "password": "0000000000000000",
                    "ctrlCond1": "2400000000000000",
                    "iccData": "5F2A02015682027D00950500001800009A032502219C01019F02060000000100009F03060000000000009F100807010103A0B806019F1A0201569F1E0832303033313233309F26081DB5F1D16F636F8C9F2701809F3303E098C09F34009F3501229F360215379F37040B7FBD48",
                    "reservedData": "00000500010000000000402",
                    "netData": "534D3031360072F2F72CA4CC18A906071F697B6E57",
                    "mac": "CC239744",
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02002100_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "settleDate": TODAY[-4:],
                    "transAmtChar": "000000010000",
                    "addInfo104": "",
                    "addDataPrv": "",
                    "mac": "E01E9FC6",
                    "addInfo56": "",
                    "managerType": "",
                    "ctrlCond1": "",
                    "addInfo113": "",
                    "regDate": "0917",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "addInfo125": "",
                    "sendBranch": "14373020",
                    "serviceCondCode": "00",
                    "switchData": "",
                    "addInfo126": "",
                    "currency": "156",
                    "terminalCode": "12345678",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "reqBranch": "14373020",
                    "thirdTransCode": "210000",
                    "inputMode": "022",
                    "msgType": "0200",
                    "term2termId": "000000000004",
                    "billRateChar": "",
                    "merchNo": "123456789012345",
                    "merchType": "6010",
                    "cardSeq": "000",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR        ",
                    "track2": "6224242000000021D29022015699031007",
                    "regTime": "105351",
                    "acctCurrency": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002044",
                    "reservedData": "00000500060000000000401",
                    "recvBranch":"14373020"

                }
            }
        }
    }
    REQ_JSON_02002100_CUPS = {
        "bupps": {
            "req": {
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "CUPS",
                    "transAmtChar": "000000010000",
                    "addInfo104": "",
                    "addDataPrv": "",
                    "mac": "E01E9FC6",
                    "addInfo56": "",
                    "managerType": "",
                    "ctrlCond1": "",
                    "addInfo113": "",
                    "regDate": "0917",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "addInfo125": "",
                    "sendBranch": "14373020",
                    "serviceCondCode": "00",
                    "switchData": "",
                    "addInfo126": "",
                    "currency": "156",
                    "terminalCode": "12345678",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "reqBranch": "14373020",
                    "thirdTransCode": "210000",
                    "inputMode": "052",
                    "msgType": "0200",
                    "term2termId": "000000000004",
                    "billRateChar": "",
                    "merchNo": "123456789012345",
                    "merchType": "6010",
                    "cardSeq": "000",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR        ",
                    "track2": "6224242000000021D29022015699031007",
                    "regTime": "105351",
                    "acctCurrency": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002044",
                    "reservedData": "00000500060000000000401",

                }
            }
        }
    }
    REQ_JSON_02002000_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "attachDataPvt": "",
                    "payChannel": "DBCS",
                    "accountingType": "A231C",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "200000",
                    "inputMode": "021",
                    "password": "0000000000000000",
                    "msgType": "0200",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "2400000000000000",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "pinInputMode": "06",
                    "iccData": "",
                    "oriMsgKey": "020000213633099344100000450452000004504520",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": "636843372878234316",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02002000_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "attachDataPvt": "",
                    "payChannel": "CUPS",
                    "accountingType": "A231C",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "200000",
                    "inputMode": "052",
                    "msgType": "0200",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600030000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "d05187",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "5412",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "111",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "iccData": "",
                    "oriMsgKey": "020000213633099344100000450452000004504520",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": "636843372878234316",
                    "thirdRespcode": "",
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_04202000_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "payChannel": "DBCS",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": "6212141000000000013",
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "200000",
                    "inputMode": "012",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "07AA66EC",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000008",
                    "billRateChar": "",
                    "regDate": "1011",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "realAmtChar": "",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600030000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "info126": "",
                    "validDate": "",
                    "merchType": "5411",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "103749",
                    "oriMsgKey": "020000245310375907320001437302000014373020",
                    "systemTrackNo": "002453",
                    "settleRateChar": "",
                    "iccData": "",
                    "grantCode": "d05187",
                    "thirdRespcode": "",
                    "oriChannelDate": TODAY,
                    "oriReqSerial": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02003002_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "1111",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "channel": "ATMP",
                    "transCode": "02003002",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "哈哈支行",
                    "teller": "张大力",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "sendBranch": "14373020",
                    "ctrlCond1": "2600000000000000",
                    "password": "EC2804D2AC42710A",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "02",
                    "track2": "6224242000000021D29022015699031000",
                    "cardSeq": "000",
                    "thirdTransCode": "300200",
                    "regTime": "104746",
                    "merchNo": "123456789012345",
                    "inputMode": "051",
                    "pinInputMode": "06",
                    "msgType": "0200",
                    "reservedData": "00000600010000000000402",
                    "merchType": "6011",
                    "regDate": "0919",
                    "mac": "30ABF69D",
                    "term2termId": "000000000002",
                    "currency": "156",
                    "reqBranch": "14373020",
                    "systemTrackNo": "000935",
                    "terminalCode": "12345678",
                    "transDttm": str(random.randint(1000000000,9999999999))
                }
            }
        }
    }
    REQ_JSON_06203002_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "190612",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "channel": "ATMP",
                    "transCode": "01003300",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "哈哈支行",
                    "teller": "张大力",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "settleDate": TODAY[-4:],
                    "sendBranch": "14373020",
                    "ctrlCond1": "2600000000000000",
                    "password": "EC2804D2AC42710A",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "02",
                    "track2": "6224242000000021D29022015699031007",
                    "cardSeq": "000",
                    "thirdTransCode": "300000",
                    "regTime": "104746",
                    "merchNo": "123456789012345",
                    "inputMode": "021",
                    "pinInputMode": "06",
                    "msgType": "0200",
                    "reservedData": "00000500010000000000402",
                    "merchType": "6011",
                    "regDate": "0919",
                    "mac": "30ABF69D",
                    "term2termId": "000000000002",
                    "currency": "156",
                    "reqBranch": "14373020",
                    "systemTrackNo": "000937",
                    "terminalCode": "12345678",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "payChannel": "DBCS"
                }
            }
        }
    }
    REQ_JSON_06203002_CUPS = {
        "bupps": {
            "req": {
                "head": {
                    "reqTranstime": "145800",
                    "reqSysCode": "SYS-ATMP",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "cups",
                    "reqTransdate": TODAY,
                    "channel": "13",
                    "service_code": "11002000013",
                    "teller": "10A584",
                    "transCode": "06203002",
                    "service_scene": "32",
                    "branch": "10000"
                },
                "body": {
                    "payChannel": "CUPS",
                    "msgType": "0620",
                    "terminalEntryCap": "5",
                    "reservedData": "00000600010000000000400",
                    "transAmtChar": "000000020000",
                    "merchType": "6011",
                    "sendBranch": "14373020",
                    "regDate": "0919",
                    "remark": "",
                    "term2termId": "TiP7huN411Ye",
                    "managerType": "951",
                    "thirdRespcode": "55",
                    "icChipCode": "0",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": "6224242000000021",
                    "currency": "156",
                    "serviceCondCode": "02",
                    "iccData": "82027D00950500001800009A032304209F100807000103A02000019F1A0201569F1E0832303033313233309F26088ADFC34F7B649CB49F3303E098C09F360212459F37040B7FBD48DF31052000000000",
                    "batchNo": "000001",
                    "reqBranch": "14373020",
                    "cardSeq": "000",
                    "oriMsgKey": "020000188005271722410009201000000004504520",
                    "thirdTransCode": "300200",
                    "regTime": "104746",
                    "icReliabilityFlg": "0",
                    "merchNo": "123456789012345",
                    "inputMode": "051",
                    "terminalCode": "12345678",
                    "oriSerial": "21715337",
                    "oriReqTransdate": "20190921",
                    "transDttm": "0218150000"
                }
            }
        }
    }
    REQ_JSON_01000306_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "reqTransdate": TODAY,
                    "reqSysCode": "SYS-ATMP",
                    "reqTranstime": "160101",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "msgType": "0100",
                    "sendBranch": "14373020",
                    "ctrlCond1": "2400000000000000",
                    "password": "0000000000000000",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "06",
                    "track2": "6212141000000000013=49121017899031001",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "thirdTransCode": "030000",
                    "regTime": "094332",
                    "merchNo": "123456789012345",
                    "inputMode": "021",
                    "pinInputMode": "06",
                    "reservedData": "00000600030000000000401",
                    "transAmtChar": "000000010000",
                    "merchType": "6011",
                    "regDate": "1015",
                    "term2termId": "000000000006",
                    "managerType": "",
                    "currency": "156",
                    "reqBranch": "14373020",
                    "systemTrackNo": "000444",
                    "transDttm": str(random.randint(1000000000, 9999999999)),
                    "terminalCode": "12345678",
                    "mac": "3335413142454445"
                }
            }
        }
    }
    REQ_JSON_01000306_CUPS = {
        "bupps": {
            "req": {
                "head": {
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "reqTransdate": TODAY,
                    "reqSysCode": "SYS-ATMP",
                    "reqTranstime": "160101",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "CUPS",
                    "msgType": "0100",
                    "sendBranch": "14373020",
                    "ctrlCond1": "2400000000000000",
                    "password": "0000000000000000",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "06",
                    "track2": "6212141000000000013=49121017899031001",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "thirdTransCode": "030000",
                    "regTime": "094332",
                    "merchNo": "123456789012345",
                    "inputMode": "021",
                    "pinInputMode": "06",
                    "reservedData": "00000600030000000000401",
                    "transAmtChar": "000000010000",
                    "merchType": "6011",
                    "regDate": "1015",
                    "term2termId": "000000000006",
                    "managerType": "",
                    "currency": "156",
                    "reqBranch": "14373020",
                    "systemTrackNo": "000444",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "terminalCode": "12345678",
                    "mac": "3335413142454445",
                    "cardSeq": "123"
                }
            }
        }
    }
    REQ_JSON_02202000_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "validDate": "",
                    "sendBranch": "14373020",
                    "ctrlCond1": "",
                    "password": "",
                    "acctCurrency": "",
                    "thirdRespcode": "",
                    "reqReserved": "",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": "6212141000000000013",
                    "pkgSecureCode": "",
                    "serviceCondCode": "00",
                    "track1": "",
                    "queryDetailData": "",
                    "track2": "6212141000000000013=49121017899031001",
                    "iccData": "",
                    "info56": "",
                    "cardSeq": "",
                    "settleRateChar": "",
                    "netData": "",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "authInfo": "",
                    "thirdTransCode": "200000",
                    "regTime": "150036",
                    "info126": "",
                    "merchNo": "123456789012345",
                    "info125": "",
                    "billAmtChar": "",
                    "inputMode": "022",
                    "feeChar": "",
                    "pinInputMode": "",
                    "attachDataResp": "",
                    "exchangeDate": "",
                    "msgType": "0220",
                    "reservedData": "00000600030000005000401",
                    "transAmtChar": "000000010000",
                    "merchType": "5412",
                    "regDate": "1010",
                    "mac": "0F86A017",
                    "term2termId": "000000000018",
                    "managerType": "",
                    "countryCode": "",
                    "info113": "",
                    "attachDataPvt": "",
                    "info117": "",
                    "billRateChar": "",
                    "currency": "156",
                    "info116": "",
                    "payerAcct": "",
                    "exchangeData": "",
                    "reqBranch": "14373020",
                    "payeeAcct": "",
                    "settleCurrency": "",
                    "grantCode": "d05187",
                    "recvReserved": "",
                    "oriMsgKey": "020017220110101547550000450452000004504520",
                    "systemTrackNo": "000669",
                    "info104": "",
                    "settleAmtChar": "",
                    "realAmtChar": "",
                    "terminalCode": "12345678",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "oriReqTransdate": TODAY
                }
            }
        }
    }
    REQ_JSON_02202100_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "210000",
                    "inputMode": "022",
                    "password": "",
                    "msgType": "0220",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": "0918222618",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": str(random.randint(100000000000000000000000000000000000000000,
                                                    200000000000000000000000000000000000000000)),
                    # "oriMsgKey": "1020000031304121130040009201000000222210344",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": str(random.randint(100000000, 999999999)),
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02001700_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "210000",
                    "inputMode": "022",
                    "password": "",
                    "msgType": "0220",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "020012550109182200590000450452000004504533",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02001700_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "CUPS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "170000",
                    "inputMode": "012",
                    "password": "",
                    "msgType": "0200",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "020012550109182200590000450452000004504533",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_01002000_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "reqTransdate": TODAY,
                    "reqSysCode": "SYS-ATMP",
                    "reqTranstime": "160101",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "msgType": "0100",
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "oriReqTransdate": TODAY,
                    "sendBranch": "14373020",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "06",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "thirdTransCode": "200000",
                    "regTime": "094332",
                    "merchNo": "123456789012345",
                    "inputMode": "022",
                    "reservedData": "00000600030000000000401",
                    "transAmtChar": "000000010000",
                    "merchType": "7011",
                    "regDate": "1015",
                    "term2termId": "000000000006",
                    "managerType": "",
                    "currency": "156",
                    "reqBranch": "92010000",
                    "systemTrackNo": "000444",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "terminalCode": "12345678",
                    "mac": "3335413142454445",
                    "track2": "6212141000000000013=49121017899031001",
                    "grantCode": "135916"
                }
            }
        }
    }
    REQ_JSON_04201700_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "170000",
                    "inputMode": "022",
                    "password": "",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "43A724CE",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0924",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "144246",
                    "track2": "6224242000000021D29022015699031007",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "020014540609241437010000450452000004504520",
                    "systemTrackNo": "002213",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}"
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_04200300_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "170000",
                    "inputMode": "022",
                    "password": "",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "43A724CE",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0924",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "144246",
                    "track2": "6224242000000021D29022015699031007",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"123{str(random.randint(100000000, 999999999))}",
                    "systemTrackNo": "002213",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}"
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_04202001_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "E9407041",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "realAmtChar": "",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "recvBranch": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"123{str(random.randint(100000000000, 999999999999))}",
                    "systemTrackNo": "002257",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02000006_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "E9407041",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "realAmtChar": "",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "recvBranch": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"0{str(random.randint(100000000000000000000000000000000000000000, 900000000000000000000000000000000000000000))}",
                    "systemTrackNo": "002257",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02000006_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "CUPS",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "000000",
                    "inputMode": "022",
                    "password": "",
                    "msgType": "0200",
                    "netData": "",
                    "mac": "E9407041",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "realAmtChar": "",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "06",
                    "reservedData": "00000600030000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "recvBranch": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6011",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "systemTrackNo": "002257",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02002006_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "reqTransdate": TODAY,
                    "reqSysCode": "SYS-ATMP",
                    "reqTranstime": "160101",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "msgType": "0100",
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "oriReqTransdate": TODAY,
                    "sendBranch": "14373020",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "06",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "thirdTransCode": "200000",
                    "regTime": "094332",
                    "merchNo": "123456789012345",
                    "inputMode": "022",
                    "reservedData": "00000600030000000000401",
                    "transAmtChar": "000000010000",
                    "merchType": "7011",
                    "regDate": "1015",
                    "term2termId": "000000000006",
                    "managerType": "",
                    "currency": "156",
                    "reqBranch": "92010000",
                    "systemTrackNo": "000444",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "terminalCode": "12345678",
                    "mac": "3335413142454445",
                    "track2": "6212141000000000013=49121017899031001",
                    "grantCode": "135916"
                }
            }
        }
    }
    REQ_JSON_04200006_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "DBCS",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "",
                    "msgType": "0420",
                    "netData": "",
                    "mac": "E9407041",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "realAmtChar": "",
                    "sendBranch": "14373020",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "recvBranch": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6010",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"123{str(random.randint(100000000000, 999999999999))}",
                    "systemTrackNo": "002257",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_02004000_LOCAL = {
        "bupps": {
            "req": {
                "head": {
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "reqTransdate": TODAY,
                    "reqSysCode": "SYS-ATMP",
                    "reqTranstime": "160101",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "sign": "",
                    "ipAddr": ""
                },
                "body": {
                    "payChannel": "DBCS",
                    "msgType": "0200",
                    "sendBranch": "14373020",
                    "ctrlCond1": "2400000000000000",
                    "password": "0000000000000000",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "mainAcct": ACCT.SUCCESS,
                    "serviceCondCode": "06",
                    "track2": "6212141000000000013=49121017899031001",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "thirdTransCode": "400000",
                    "regTime": "094332",
                    "merchNo": "123456789012345",
                    "inputMode": "021",
                    "pinInputMode": "06",
                    "reservedData": "00000600030000000000401",
                    "transAmtChar": "000000010000",
                    "merchType": "6011",
                    "regDate": "1015",
                    "term2termId": "000000000006",
                    "managerType": "",
                    "currency": "156",
                    "reqBranch": "14373020",
                    "systemTrackNo": "000444",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "terminalCode": "12345678",
                    "mac": "3335413142454445"
                }
            }
        }
    }
    REQ_JSON_02004812_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "CUPS",
                    "info117": "",
                    "attachDataPvt": "",
                    "transAmtChar": "000000010000",
                    "mainAcct": '6224242000000021',
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "480000",
                    "inputMode": "012",
                    "password": "",
                    "msgType": "0200",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": "",
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "6224242000000021",
                    "info56": "",
                    "serviceCondCode": "12",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6011",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "6266666666666656",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"020000178804241911330009226000000092010000",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "QCUP0101",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_01003300_LOCAL = {
        "bupps": {
            "req": {
                "body": {
                    "info117": "",
                    "attachDataPvt": "",
                    "settleDate": TODAY[-4:],
                    "payChannel": "DBCS",
                    "accountingType": "A231C",
                    "transAmtChar": "000000010000",
                    "mainAcct": ACCT.SUCCESS,
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "04504520",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "010000",
                    "inputMode": "021",
                    "password": "0000000000000000",
                    "msgType": "0200",
                    "netData": "534D303136495AFBDCCA7F29281345363C147F06E4",
                    "mac": "360B8CF9",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000031",
                    "ctrlCond1": "2400000000000000",
                    "billRateChar": "",
                    "regDate": "0919",
                    "track3": "996212141000000000013=1561560000000000000000000000030303000001=000000000000=000000000000=000000000000000",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "pkgMsgKey": f"123{str(random.randint(100000000, 999999999))}",
                    "sendBranch": "04504520",
                    "payerAcct": "",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000600060000000000401",
                    "queryDetailData": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "1901",
                    "merchType": "6051",
                    "realBalance": "",
                    "currency": "156",
                    "payeeAcct": "",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12345678",
                    "merchAddr": "中国银联CHINA UNIONPAY SIMULATOR        ",
                    "regTime": "215628",
                    "track2": "6212141000000000013=49121017899031001",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": "",
                    "systemTrackNo": "002136",
                    "settleRateChar": "",
                    "pinInputMode": "06",
                    "iccData": "",
                    "thirdRespcode": ""
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "ATMP",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_01009200_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "CUPS",
                    "info117": "",
                    "attachDataPvt": "4153505A31343820203031323334353637383931323334353637383930202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020414F3030323130",
                    "transAmtChar": "000000010000",
                    "mainAcct": '6224242000000021',
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "920000",
                    "inputMode": "901",
                    "password": "111111",
                    "msgType": "0100",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": '1111110000000000',
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000,9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "6224242000000021",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6011",
                    "realBalance": "",
                    "payeeAcct": "6266666666666656",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"020000178804241911330009226000000092010000",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "01",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "thirdRespcode": "",
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "QCUP0101",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    REQ_JSON_08200000_CUPS = {
        "bupps": {
            "req": {
                "body": {
                    "payChannel": "CUPS",
                    "info117": "",
                    "attachDataPvt": "4153505A31343820203031323334353637383931323334353637383930202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020414F3030323130",
                    "transAmtChar": "000000010000",
                    "mainAcct": '6224242000000021',
                    "billAmtChar": "",
                    "pkgSecureCode": "",
                    "reqBranch": "14373020",
                    "track1": "",
                    "countryCode": "",
                    "thirdTransCode": "920000",
                    "inputMode": "901",
                    "password": "111111",
                    "msgType": "0100",
                    "netData": "",
                    "mac": "82DECFDD",
                    "managerType": "",
                    "reqReserved": "",
                    "info113": "",
                    "info104": "",
                    "info116": "",
                    "term2termId": "000000000004",
                    "ctrlCond1": '1111110000000000',
                    "billRateChar": "",
                    "regDate": "0917",
                    "track3": "",
                    "transDttm": str(random.randint(1000000000, 9999999999)),
                    "sendBranch": "14373020",
                    "payerAcct": "6224242000000021",
                    "info56": "",
                    "serviceCondCode": "00",
                    "reservedData": "00000500060000000000401",
                    "queryDetailData": "",
                    "settleDate": "",
                    "authInfo": "",
                    "merchNo": "123456789012345",
                    "grantCode": "",
                    "info126": "",
                    "validDate": "",
                    "merchType": "6011",
                    "realBalance": "",
                    "payeeAcct": "6266666666666656",
                    "exchangeData": "",
                    "settleCurrency": "",
                    "cardSeq": "",
                    "exchangeDate": "",
                    "terminalCode": "12",
                    "merchAddr": "CHINA UNIONPAY SIMULATOR                ",
                    "regTime": "105351",
                    "track2": "",
                    "attachDataResp": "",
                    "acctCurrency": "",
                    "feeChar": "",
                    "recvReserved": "",
                    "info125": "",
                    "settleAmtChar": "",
                    "oriMsgKey": f"020000178804241911330009226000000092010000",
                    "systemTrackNo": "002082",
                    "settleRateChar": "",
                    "pinInputMode": "01",
                    "iccData": "",
                    "oriReqTransdate": TODAY,
                    "oriReqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "thirdRespcode": "",
                },
                "head": {
                    "reqSysCode": "SYS-ATMP",
                    "reqTransdate": TODAY,
                    "reqTranstime": "160101",
                    "reqSerial": f"123{str(random.randint(100000000, 999999999))}",
                    "appId": "",
                    "channel": "QCUP0101",
                    "transCode": "",
                    "productCode": "",
                    "busiNo": "",
                    "branch": "",
                    "teller": "",
                    "areaCode": "",
                    "grantBranch": "",
                    "grantTeller": "",
                    "version": "",
                    "terminalCode": "",
                    "deviceType": "",
                    "certId": "",
                    "charset": "",
                    "mac": "",
                    "sign": "",
                    "ipAddr": ""
                }
            }
        }
    }
    if code == '02006091':
        return REQ_JSON_02006091
    elif code == '04206091':
        return REQ_JSON_04206091
    elif code == '02006391':
        return REQ_JSON_02006391
    elif code == '04206391':
        return REQ_JSON_04206391
    elif code == '02000000':
        return REQ_JSON_02000000
    elif code == '04200000':
        return REQ_JSON_04200000
    elif code == '02000100_LOCAL':
        return REQ_JSON_02000100_LOCAL
    elif code == '02000100_CUPS':
        return REQ_JSON_02000100_CUPS
    elif code == '02002100_LOCAL':
        return REQ_JSON_02002100_LOCAL
    elif code == '02002100_CUPS':
        return REQ_JSON_02002100_CUPS
    elif code == '02000000_CUPS':
        return REQ_JSON_02000000_CUPS
    elif code == '04200100_LOCAL':
        return REQ_JSON_04200100_LOCAL
    elif code == '02002000_LOCAL':
        return REQ_JSON_02002000_LOCAL
    elif code == '02002000_CUPS':
        return REQ_JSON_02002000_CUPS
    elif code == '04202000_LOCAL':
        return REQ_JSON_04202000_LOCAL
    elif code == '02003002_LOCAL':
        return REQ_JSON_02003002_LOCAL
    elif code == '06203002_LOCAL':
        return REQ_JSON_06203002_LOCAL
    elif code == '06203002_CUPS':
        return REQ_JSON_06203002_CUPS
    elif code == '01000306_LOCAL':
        return REQ_JSON_01000306_LOCAL
    elif code == '01000306_CUPS':
        return REQ_JSON_01000306_CUPS
    elif code == '02202000_LOCAL':
        return REQ_JSON_02202000_LOCAL
    elif code == '02202100_LOCAL':
        return REQ_JSON_02202100_LOCAL
    elif code == '02001700_LOCAL':
        return REQ_JSON_02001700_LOCAL
    elif code == '01002000_LOCAL':
        return REQ_JSON_01002000_LOCAL
    elif code == '02001700_CUPS':
        return REQ_JSON_02001700_CUPS
    elif code == '04201700_LOCAL':
        return REQ_JSON_04201700_LOCAL
    elif code == '04200300_LOCAL':
        return REQ_JSON_04200300_LOCAL
    elif code == '04202001_LOCAL':
        return REQ_JSON_04202001_LOCAL
    elif code == '02000006_LOCAL':
        return REQ_JSON_02000006_LOCAL
    elif code == '02000006_CUPS':
        return REQ_JSON_02000006_CUPS
    elif code == '02002006_LOCAL':
        return REQ_JSON_02002006_LOCAL
    elif code == '04200006_LOCAL':
        return REQ_JSON_04200006_LOCAL
    elif code == '02004000_LOCAL':
        return REQ_JSON_02004000_LOCAL
    elif code == '02004812_CUPS':
        return REQ_JSON_02004812_CUPS
    elif code == '01003300_LOCAL':
        return REQ_JSON_01003300_LOCAL
    elif code == '01009200_CUPS':
        return REQ_JSON_01009200_CUPS
    elif code == '08200000_CUPS':
        return REQ_JSON_08200000_CUPS

class PAY_CHANNEL:
    CUPS = 'CUPS'
    DBCS = 'DBCS'
    CDCS = 'CDCS'


class MERCH_TYPE:
    ZHUNONG = '6051'


class CHANNEL_TYPE:
    ATM = 'ATMP'
    COUNTER = 'COUNTER'
    POS = 'POSP'
    MOBILE = ''
    CUPS = 'CUPS'


class CUPS_STATUS:
    pass
    # PRAA = 'PRAA' #初始
    # PR00 = 'PR00' #已转发
    # PR01 = 'PR01' #待认证
    # PR02 = 'PR02' #已付款
    # PR03 = 'PR03' #已轧差
    # PR04 = 'PR04' #已清算
    # PR05 = 'PR05' #已成功
    # PR07
    # PR07
    # 已处理
    # PR08
    # PR08
    # 已撤销
    # PR09
    # PR09
    # 已拒绝
    # PR10
    # PR10
    # 已确认 / 已同意
    # PR11
    # PR11
    # 轧差排队
    # PR12
    # PR12
    # 清算排队
    # PR21
    # PR21
    # 已止付
    # PR22
    # PR22
    # 已人行冲正
    # PR23
    # PR23
    # 已退回
    # PR24
    # PR24
    # 未处理
    # PR25
    # PR25
    # 已部分退回
    # PR32
    # PR32
    # 逾期
    # PRZZ
    # PRZZ
    # 撤销


def print_interface_name(deal_code):
    pass


if __name__ == '__main__':
    print(TODAY)
